import Layout from "@/components/layout/index";
import Home from "../views/Home.vue";

const publicRoutes = [
  {
    path: "/",
    name: "Home",
    component: Home
  },
  {
    path: "/login",
    name: "login",
    component: () => import("@/views/login/index")
  },
  {
    path: "/about",
    name: "about",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: Layout,
    children: [
      {
        path: "",
        name: "about_index",
        component: () => import(/* webpackChunkName: "about" */ "../views/About.vue")
      }
    ]
  }
];

export default publicRoutes;
